package cn.iocoder.yudao.module.crm.enums.customer;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * CRM 客户来源--主要服务于广告引擎转入的线索和客户
 */
@Getter
@AllArgsConstructor
public enum CrmCustomerSourceEnum implements IntArrayValuable {

    DOU_YIN_LAI_KE(101, "抖音来客推广"),
    DOU_YIN_FEI_YU(102, "抖音飞鱼线索"),
    KUAI_SHOW_CI_LI(103, "快手磁力引擎");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CrmCustomerSourceEnum::getSource).toArray();

    /**
     * 状态
     */
    private final Integer source;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
